# -*- coding: utf-8 -*-
"""
Created on 20/05/2014

Module name: main.py
@authors: miguel rosa (6219) and pedro caixinha (4437)
Obs.:
"""

import image as img
import astar as algh

def main():
    image = img.Image('peppersgrad.pgm')
    aStar = algh.aStar(image._img)

    path = aStar.run()
    image.writeImg(path)
    image.showImage()

# main - executa o programa
if __name__ == '__main__':
    main()
